package cn.javass.dp.command.example1;

/**
 * 调用者
 */

public class Invoker {

    /**
     * 持有命令对象
     */
    private Command command = null;



    public void setCommand(Command command) {
        this.command = command;
    }

    public void runCommand() {
        command.execute();
    }
}
